# $Id$
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Alexander Baldeck <alexander@archlinux.org>

pkgname=xf86dgaproto
pkgver=2.1
pkgrel=3
pkgdesc="X11 Direct Graphics Access extension wire protocol"
arch=('any')
url="https://xorg.freedesktop.org/"
license=('custom')
source=("${url}/releases/individual/proto/${pkgname}-${pkgver}.tar.bz2")
md5sums=('a036dc2fcbf052ec10621fd48b68dbb1')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install

  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
